3.125 \(\int \frac {\sin ^3(\sqrt {x})}{\sqrt {x}} \, dx\)

Optimal. Leaf size=21 \[ \frac {2}{3} \cos ^3\left (\sqrt {x}\right )-2 \cos \left (\sqrt {x}\right ) \]

[Out]

-2*cos(x^(1/2))+2/3*cos(x^(1/2))^3

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 21, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3379, 2633} \[ \frac {2}{3} \cos ^3\left (\sqrt {x}\right )-2 \cos \left (\sqrt {x}\right ) \]

Antiderivative was successfully verified.

[In]

Int[Sin[Sqrt[x]]^3/Sqrt[x],x]

[Out]

-2*Cos[Sqrt[x]] + (2*Cos[Sqrt[x]]^3)/3

Rule 2633

Int[sin[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> -Dist[d^(-1), Subst[Int[Expand[(1 - x^2)^((n - 1)/2), x], x], x
, Cos[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[(n - 1)/2, 0]

Rule 3379

Int[(x_)^(m_.)*((a_.) + (b_.)*Sin[(c_.) + (d_.)*(x_)^(n_)])^(p_.), x_Symbol] :> Dist[1/n, Subst[Int[x^(Simplif
y[(m + 1)/n] - 1)*(a + b*Sin[c + d*x])^p, x], x, x^n], x] /; FreeQ[{a, b, c, d, m, n, p}, x] && IntegerQ[Simpl
ify[(m + 1)/n]] && (EqQ[p, 1] || EqQ[m, n - 1] || (IntegerQ[p] && GtQ[Simplify[(m + 1)/n], 0]))

Rubi steps

\begin {align*} \int \frac {\sin ^3\left (\sqrt {x}\right )}{\sqrt {x}} \, dx &=2 \operatorname {Subst}\left (\int \sin ^3(x) \, dx,x,\sqrt {x}\right )\\ &=-\left (2 \operatorname {Subst}\left (\int \left (1-x^2\right ) \, dx,x,\cos \left (\sqrt {x}\right )\right )\right )\\ &=-2 \cos \left (\sqrt {x}\right )+\frac {2}{3} \cos ^3\left (\sqrt {x}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.02, size = 23, normalized size = 1.10 \[ \frac {1}{6} \cos \left (3 \sqrt {x}\right )-\frac {3 \cos \left (\sqrt {x}\right )}{2} \]

Antiderivative was successfully verified.

[In]

Integrate[Sin[Sqrt[x]]^3/Sqrt[x],x]

[Out]

(-3*Cos[Sqrt[x]])/2 + Cos[3*Sqrt[x]]/6

________________________________________________________________________________________

fricas [A]  time = 0.67, size = 15, normalized size = 0.71 \[ \frac {2}{3} \, \cos \left (\sqrt {x}\right )^{3} - 2 \, \cos \left (\sqrt {x}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x^(1/2))^3/x^(1/2),x, algorithm="fricas")

[Out]

2/3*cos(sqrt(x))^3 - 2*cos(sqrt(x))

________________________________________________________________________________________

giac [A]  time = 0.36, size = 15, normalized size = 0.71 \[ \frac {2}{3} \, \cos \left (\sqrt {x}\right )^{3} - 2 \, \cos \left (\sqrt {x}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x^(1/2))^3/x^(1/2),x, algorithm="giac")

[Out]

2/3*cos(sqrt(x))^3 - 2*cos(sqrt(x))

________________________________________________________________________________________

maple [A]  time = 0.08, size = 15, normalized size = 0.71 \[ -\frac {2 \left (2+\sin ^{2}\left (\sqrt {x}\right )\right ) \cos \left (\sqrt {x}\right )}{3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(x^(1/2))^3/x^(1/2),x)

[Out]

-2/3*(2+sin(x^(1/2))^2)*cos(x^(1/2))

________________________________________________________________________________________

maxima [A]  time = 0.30, size = 15, normalized size = 0.71 \[ \frac {2}{3} \, \cos \left (\sqrt {x}\right )^{3} - 2 \, \cos \left (\sqrt {x}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x^(1/2))^3/x^(1/2),x, algorithm="maxima")

[Out]

2/3*cos(sqrt(x))^3 - 2*cos(sqrt(x))

________________________________________________________________________________________

mupad [B]  time = 4.74, size = 14, normalized size = 0.67 \[ \frac {2\,\cos \left (\sqrt {x}\right )\,\left ({\cos \left (\sqrt {x}\right )}^2-3\right )}{3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(x^(1/2))^3/x^(1/2),x)

[Out]

(2*cos(x^(1/2))*(cos(x^(1/2))^2 - 3))/3

________________________________________________________________________________________

sympy [A]  time = 0.92, size = 29, normalized size = 1.38 \[ - 2 \sin ^{2}{\left (\sqrt {x} \right )} \cos {\left (\sqrt {x} \right )} - \frac {4 \cos ^{3}{\left (\sqrt {x} \right )}}{3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sin(x**(1/2))**3/x**(1/2),x)

[Out]

-2*sin(sqrt(x))**2*cos(sqrt(x)) - 4*cos(sqrt(x))**3/3

________________________________________________________________________________________